BIN = processpool
SRC = $(shell ls *.cc *.hpp)
OBJ = $(SRC:.cc.hpp=.o)#将同名.cc编译成.o
#SRC = $(wildcard *.cc)
CC = g++
FLAGS = -c -Wall -std=c++11
LDFLAGS = -o
$(BIN):$(OBJ)
	$(CC) $^ $(LDFLAGS) $@
%.o:%.cc
	$(CC)  $(FLAGS) $<
.PHONY:clean
clean:
	rm -f $(BIN) 
#$(OBJ)